package com.samoiloff.ui.common {
	import flash.display.Sprite;

	/**
	 * @author Samoiloff
	 */
	public class RectMc extends Sprite {
		
		public function RectMc() {
			
		}
		
		public function draw(width:Number, height:Number, fill:int = -1, border:int=-1):void {
			graphics.clear();
			if (border >= 0) {
				graphics.lineStyle(1, border);
			}
			if (fill >= 0) {
				graphics.beginFill(fill);
			}
			graphics.drawRect(0, 0, width, height);
			graphics.endFill();
		}
		

	}
}
